package com.petlab.dao.impl;

import javax.annotation.Resource;

import org.springframework.orm.hibernate3.HibernateTemplate;
import org.springframework.stereotype.Component;

import com.petlab.dao.RoleDao;
import com.petlab.model.Role;

@Component("roleDao")
public class RoleDaoImpl implements RoleDao {
	private HibernateTemplate hibernateTemplate;

	public HibernateTemplate getHibernateTemplate() {
		return hibernateTemplate;
	}

	@Resource
	public void setHibernateTemplate(HibernateTemplate hibernateTemplate) {
		this.hibernateTemplate = hibernateTemplate;
	}

public void saveRole(Role role) {
	// TODO Auto-generated method stub
	hibernateTemplate.save(role);
}
}
